package com.scs.application.modules.fsd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜权限表")
@TableName("fsd_role")
public class FsdRole extends DataEntity {

    @EntityFieldAnnotation(
            text = "权限键名",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String roleKey;

    @EntityFieldAnnotation(
            text = "权限名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String roleName;

    @EntityFieldAnnotation(
            text = "权限名称拼音",
            length = "50",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private String roleNamePy;

    @EntityFieldAnnotation(
            text = "说明",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "菜单排序",
            type = EntityFieldType.INT,
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private Integer sort;

}
